Drop gdk_surface_get_root_origin
authorMatthias Clasen <mclasen@redhat.com>
Mon, 25 Mar 2019 03:15:01 +0000 (23:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:14 +0000 (20:25 +0000)
It was not used.

docs/reference/gdk/gdk4-sections.txt
gdk/gdksurface.c
gdk/gdksurface.h

index bdd16ba830b89c42ff7fe85bf3a10d6d556dbf15..c19a3427953ae20b01892bd3a9298bd8bbe2b6d0 100644 (file)
@@ -261,7 +261,6 @@ gdk_surface_set_type_hint
 gdk_surface_get_type_hint
 gdk_surface_set_shadow_width
 gdk_surface_get_position
-gdk_surface_get_root_origin
 gdk_surface_get_frame_extents
 gdk_surface_get_origin
 gdk_surface_get_device_position
index 57934c92ee27a8a82eb06e6eb93c47de02b35890..df4012c029069d9a78fc332b817ae598aba6a6a3 100644 (file)
@@ -3006,32 +3006,6 @@ gdk_surface_set_transient_for (GdkSurface *surface,
   GDK_SURFACE_IMPL_GET_CLASS (surface->impl)->set_transient_for (surface, parent);
 }
 
-/**
- * gdk_surface_get_root_origin:
- * @surface: a toplevel #GdkSurface
- * @x: (out): return location for X position of surface frame
- * @y: (out): return location for Y position of surface frame
- *
- * Obtains the top-left corner of the window manager frame in root
- * surface coordinates.
- *
- **/
-void
-gdk_surface_get_root_origin (GdkSurface *surface,
-                             gint      *x,
-                             gint      *y)
-{
-  GdkRectangle rect;
-
-  gdk_surface_get_frame_extents (surface, &rect);
-
-  if (x)
-    *x = rect.x;
-
-  if (y)
-    *y = rect.y;
-}
-
 /**
  * gdk_surface_get_frame_extents:
  * @surface: a toplevel #GdkSurface
index 32498101561f42583c7eaefe0c20536624b37717..3ad09cd974228dcfcd940468a13a99b0f5f01d04 100644 (file)
@@ -597,10 +597,6 @@ gint          gdk_surface_get_origin     (GdkSurface      *surface,
                                           gint            *x,
                                           gint            *y);
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_get_root_origin (GdkSurface     *surface,
-                                           gint            *x,
-                                           gint            *y);
-GDK_AVAILABLE_IN_ALL
 void          gdk_surface_get_frame_extents (GdkSurface     *surface,
                                              GdkRectangle  *rect);